<div class="generalWrap">
	<h1 class="headingTitle">Edit Photo</h1>
	
	<p class="button"><a class="aButton" href="<?php echo site_url('photo/photos/'.$this->uri->segment(4)) ?>">Back</a></p>
	
	<div class="contentWrap">
		<?php echo form_open() ?>
		<table>
			<tr>
				<td width="150" valign="top"><?php echo form_label('Album:', 'album') ?></td>
				<td><?php echo form_dropdown('album', $album, $album_selected) ?></td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Name:', 'name') ?></td>
				<td>
					<?php echo form_input(array('name' => 'name', 'id' => 'name', 'size' => '80', 'value' => $photo['name'])) ?>
					<?php echo form_error('name', '<span class="formError">', '</span>') ?>
				</td>
			</tr>
			<tr>
				<td width="150" valign="top"><?php echo form_label('Source:', 'source') ?></td>
				<td>
					<?php echo form_input(array('name' => 'source', 'id' => 'source', 'size' => '80', 'value' => $photo['source'])) ?>
					<?php echo form_error('source') ?>
				</td>
			</tr>
			<tr>
				<td valign="top"><?php echo form_label('Description:', 'description') ?></td>
				<td>
					<?php echo form_textarea(array('name' => 'description', 'id' => 'description', 'rows' => '5', 'cols' => '50', 'value' => $photo['description'])) ?>
					<?php echo form_error('file') ?>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><?php echo form_submit('btnSave', 'Save') ?></td>
			</tr>
		</table>
		<?php echo form_close() ?>
	</div>
</div>